home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _5F36384E76674EECBCA08D96D118D6B3 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.6 KB  |  61 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R2xx / NVidia NV2X (PS.1.X and above)
  9.  
  10. // Specular (masked by gloss map in alpha channel of diffuse texture) and diffuse bump-mapping
  11. // At least three passes on NVidia NV1X for single-multiple light sources
  12. // One pass on ATI R3XX and NVidia NV3X for single light source (one pass for each additional LS)
  13. // One pass for single directional light source on any hardware
  14.  
  15. // Supports:
  16. // 1. Dot3 light maps
  17. // 2. Simple light maps
  18. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  19. // 4. Stencil shadows
  20. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  21. // 6. Optimised separate techniques for Single/Multiple light sources
  22. // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
  23. // 8. Env. real-time radiosity
  24.  
  25. /*Shader 'TemplBumpSpec_GlossAlpha'
  26. (
  27.   Params
  28.   (
  29.     Sort = Opaque
  30.   )
  31.   
  32.   #include "BumpSpecular_GlossAlpha.csi"    
  33. )*/
  34.  
  35. Shader 'TemplBumpSpec_GlossAlpha'
  36. (
  37.   Params
  38.   (
  39.     Sort = Opaque
  40.   )
  41.   
  42.   #define %DIFFUSE 0x1
  43.   #define %DIFFUSE_NCM 0x4
  44.   #define %SPECULAR 0x2
  45.   #define %SPECULAR_NCM 0x8
  46.   #define %GLOSS_DIFFUSEALPHA 0x20
  47.   #define %BUMP_MAP 0x1000
  48.   
  49.   #include "IllumTemplate.csi"
  50.   
  51.   #undefine %BUMP_MAP
  52.   #undefine %GLOSS_DIFFUSEALPHA
  53.   #undefine %SPECULAR_NCM
  54.   #undefine %SPECULAR
  55.   #undefine %DIFFUSE_NCM
  56.   #undefine %DIFFUSE
  57. )
  58.  
  59.  
  60.  
  61.